#include <stdio.h>
#include "nummeths.h"

int main()
{
  double abscisses[] = {-4.0, -3.0, -2.0, -1.5, -0.5, 1.0, 2.0, 3.5, 4.0},
    ordonnees[] = {-3.0, -1.0, -2.0, -0.5, 1.0, 0.0, 1.5, 1.0, 2.5},
      coef1, coef2;

      lsqe(abscisses, ordonnees, 8, &coef1, &coef2);

      printf("b1 = %.4f, b2 = %.4f\n", coef1, coef2);

      return 0;
}
